package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.SaleAdminCarResourceCheckModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * Created by DF on 10/22/2016.
 */
public interface SaleAdminCarResourceCheckRepository extends JpaRepository<SaleAdminCarResourceCheckModel, Integer>,
        JpaSpecificationExecutor<SaleAdminCarResourceCheckModel> {
    @Query("SELECT u FROM  SaleAdminCarResourceCheckModel u    WHERE u.quotedPriceCode =?1")
    SaleAdminCarResourceCheckModel getByQuotedPriceCode(int quoteNo);

}
